package javabook.ch06;

class Sungjuk_6_9_outer { 
	
	String hakbun; 
	String name; int jumsu; 
	public Sungjuk_6_9_inner in; 
	
	public Sungjuk_6_9_outer() { 
		in = new Sungjuk_6_9_inner(); 
	} 
	
	public void prt_outer() { 
		System.out.println("****** 외부 클래스의 출력 *****"); 
	}
}

class Sungjuk_6_9_inner extends Sungjuk_6_9_outer{ 
	public void prt_inner() { 
		prt_outer();
		
		 System.out.println("****** 내부 클래스의 출력 *****"); 
		 System.out.println("*** 자바의 성적 출력 ***"); 
		 System.out.println("**학번** **성명** **점수**"); 
		 System.out.println("---------------------------"); 
	 }
	}

class Jv_6_9 { 
 public static void main(String[] args) { 
	 Sungjuk_6_9_outer ttt = new Sungjuk_6_9_outer(); 
	 Sungjuk_6_9_outer.Sungjuk_6_9_inner kkk = ttt.in; 
	 kkk.prt_inner(); 
	 
	 Sungjuk_6_9_outer ken_sung = new Sungjuk_6_9_outer(); 
	 ken_sung.hakbun = "2060001"; 
	 ken_sung.name = "Ko Eung-Nam"; 
	 ken_sung.jumsu = 60; 
	 
	 Sungjuk_6_9_outer wife_sung = new Sungjuk_6_9_outer(); 
	 wife_sung.hakbun = "2060002"; 
	 wife_sung.name = "Boo Chag-Mi"; 
	 wife_sung.jumsu = 80; 
	 
	 Sungjuk_6_9_outer yoo_sung = new Sungjuk_6_9_outer(); 
	 yoo_sung.hakbun = "2060003"; 
	 yoo_sung.name = "Ko Yoo-Jin"; 
	 yoo_sung.jumsu = 100; 
	 
	 Sungjuk_6_9_outer soo_sung = new Sungjuk_6_9_outer(); 
	 soo_sung.hakbun = "2060004"; 
	 soo_sung.name = "Ko Su-Ji"; 
	 soo_sung.jumsu = 99; 
	 
	 System.out.println(ken_sung.hakbun + "  " + ken_sung.name + " " + ken_sung.jumsu); 
	 System.out.println(wife_sung.hakbun + "  " + wife_sung.name
             + " " + wife_sung.jumsu); 
	 System.out.println(yoo_sung.hakbun + "  " + yoo_sung.name 
             + " " + yoo_sung.jumsu); 
	 System.out.println(soo_sung.hakbun + "  " + soo_sung.name 
            + " " + soo_sung.jumsu); 
 	}
}
